package com.octopus.yangj.customized.rule;

import com.octopus.kernal.model.BaseStruct;
import com.octopus.kernal.service.BusinessRuleInterface;
import com.octopus.yangj.generated.model.EventStruct;
import com.octopus.yangj.util.EventStatus;

public class EventCloseRule implements BusinessRuleInterface{

	@Override
	public boolean isAllowed(BaseStruct struct) {
		EventStruct event = (EventStruct)struct;
		if(EventStatus.EXECUTED.getStatus().equals(event.getStatus())){
			return true;
		}else{
			return false;
		}
	}

}
